lcHatchSetPattern Home

Changes hatch pattern for hatch object.

 HANDLE lcHatchSetPattern (
   HANDLE hHatch,
   LPCWSTR szFileName,
   LPCWSTR szPattern,
   double Scale,
   double RotAngle
 );

Parameters
hHatch
  Handle to a hatch object.
szFileName
  Name of the file which contains hatch patterns definitions. For example, LiteCAD package has the "hatches.pat" file.
szPattern
  The meaning depends on the szFileName parameter. If the filename is specified, then szPattern is a name of hatch pattern, as written in the file.
If the filename is an empty string, then szPattern is a hatch pattern definition.
For a solid hatch specify "SOLID" and set empty szFileName.
Scale
  Scale of the pattern.
RotAngle
  Rotation angle of the pattern.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).